<?php (defined('BASEPATH')) OR exit('No direct script access allowed');

/* load the MX_Loader class */
require APPPATH."third_party/MX/Loader.php";

class MY_Loader extends MX_Loader {

 public function admintemplate($template_name, $vars = array(), $return = FALSE)
    {
        $temp['template'] = $template_name;
        $temp['data'] = $vars;
        $content = $this->view('admin/layout', $temp, $return);
        if ($return)
        {
            return $content;
        }
    }
}